package com.hzf.material.dao.model;

import java.io.Serializable;
import java.util.List;

public class MaterialList implements Serializable {
    /**
     * 商场列表ID（自增）
     *
     * @mbg.generated
     */
    private Integer marketListId;

    /**
     * 商场列表名称
     *
     * @mbg.generated
     */
    private String marketListName;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String imgUrl;

    /**
     * 所在城市
     *
     * @mbg.generated
     */
    private String city;

    /**
     * 备注
     *
     * @mbg.generated
     */
    private String remarks;

    /**
     * 外键-商场类型
     *
     * @mbg.generated
     */
    private String longitude;
    private String dimension;
    private Long marketTypeId;

    private String marketTypeName;

    private List<MaterialArea> areaList;

    private static final long serialVersionUID = 1L;

    public Integer getMarketListId() {
        return marketListId;
    }

    public void setMarketListId(Integer marketListId) {
        this.marketListId = marketListId;
    }

    public String getMarketListName() {
        return marketListName;
    }

    public void setMarketListName(String marketListName) {
        this.marketListName = marketListName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Long getMarketTypeId() {
        return marketTypeId;
    }

    public void setMarketTypeId(Long marketTypeId) {
        this.marketTypeId = marketTypeId;
    }

    public String getMarketTypeName() {
        return marketTypeName;
    }

    public void setMarketTypeName(String marketTypeName) {
        this.marketTypeName = marketTypeName;
    }

    public List<MaterialArea> getAreaList() {
        return areaList;
    }

    public void setAreaList(List<MaterialArea> areaList) {
        this.areaList = areaList;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getDimension() {
        return dimension;
    }

    public void setDimension(String dimension) {
        this.dimension = dimension;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", marketListId=").append(marketListId);
        sb.append(", marketListName=").append(marketListName);
        sb.append(", imgUrl=").append(imgUrl);
        sb.append(", city=").append(city);
        sb.append(", remarks=").append(remarks);
        sb.append(", marketTypeId=").append(marketTypeId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MaterialList other = (MaterialList) that;
        return (this.getMarketListId() == null ? other.getMarketListId() == null : this.getMarketListId().equals(other.getMarketListId()))
            && (this.getMarketListName() == null ? other.getMarketListName() == null : this.getMarketListName().equals(other.getMarketListName()))
            && (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getMarketTypeId() == null ? other.getMarketTypeId() == null : this.getMarketTypeId().equals(other.getMarketTypeId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMarketListId() == null) ? 0 : getMarketListId().hashCode());
        result = prime * result + ((getMarketListName() == null) ? 0 : getMarketListName().hashCode());
        result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getMarketTypeId() == null) ? 0 : getMarketTypeId().hashCode());
        return result;
    }
}